package cn.wolfcode.luowowo.hotel.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Hotel extends BaseDomain{
    public static final int STATE_FAVOR= 1;   //特价酒店

    private String name;  //名称
    private String english;  //英文名

    private Long destId;  //目的地id
    private Long themeId;  //主题id
    private Long brandId;  //品牌id
    private Area area; //区

    private int state =-1; //状态
    private String coverUrl; //封面
    private String summary; //简介
    private String location; //地址
    private int rooms; //酒店规模
    private Integer star; //星级
    private double score;//评分
    private int comment; //评价数
    private int hot; //关联游记数

    private String ctripName;  //携程网id名
    private Integer ctripPrice; //携程网最低价
    private String bookingName; //booking网名称
    private Integer bookingPrice; //booking网最低价

    public String getScoreLevel(){
        if (score >= 9.5 ){
            return "棒极了";
        } else if (score >= 9&&score<9.5 ){
            return "很棒";
        }else if (score >= 8.5&&score<9 ){
            return "非常好";
        }else if (score >= 8&&score<8.5 ){
            return "很好";
        }else if (score >= 7&&score<8 ){
            return "好";
        }
        return null;
    }
}
